package cn.youqu.happy.module.youqu.controller.app.userTell.vo;

import cn.youqu.happy.framework.common.validation.NullOrNotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@ApiModel("用户 APP - 用户说说更新 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppUserTellUpdateReqVO extends AppUserTellBaseVO {

    @ApiModelProperty(value = "主键", required = true)
    @NotNull(message = "主键不能为空")
    private Integer id;

    @ApiModelProperty(value = "图片数组")
    @Size( max = 5)
    private List<String> imgList;

    @ApiModelProperty(value = "标题")
    @NullOrNotEmpty(message = "标题 不能为空")
    private String title;

    @ApiModelProperty(value = "详细内容")
    @NullOrNotEmpty(message = "详细内容 不能为空")
    private String detail;


}
